#import "ZealZealotCell.h"


@implementation ZealZealotCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self embarkVividXenialLayout];
	}
	return self;
}

- (void)setUmbraBrightenDrift:(ZealZealotModel *)umbraBrightenDrift {
	_umbraBrightenDrift = umbraBrightenDrift;

	//: 配置cell的UI

[self.nirvanaAnticipateImageView sd_setImageWithURL:[NSURL URLWithString:umbraBrightenDrift.flexibilitySolarWhimsy.stringValue] placeholderImage:nil];

}
- (UITextField *)balanceTextField {
	if (!_balanceTextField) {
	
        _balanceTextField = [[UITextField alloc] init];
        _balanceTextField.frame = CGRectMake(29, 26, 113, 48);
	}
	return _balanceTextField;
}

- (UIImageView *)nirvanaAnticipateImageView {
	if (!_nirvanaAnticipateImageView) {
	
        _nirvanaAnticipateImageView = [[UIImageView alloc] init];
        _nirvanaAnticipateImageView.contentMode = UIViewContentModeScaleAspectFill;
        _nirvanaAnticipateImageView.clipsToBounds = YES;
        _nirvanaAnticipateImageView.layer.cornerRadius = 7;
        _nirvanaAnticipateImageView.layer.masksToBounds = YES;
        UIImage *enchanting = [UIImage imageNamed:@"images/image_1.png"];
        if (enchanting) {
	        _nirvanaAnticipateImageView.image = enchanting;
        }
	}
	return _nirvanaAnticipateImageView;
}

//: self.prismBtn 的点击事件
- (void)action_3 {}

//: self.jellyUnfoldIntrepidBtn 的点击事件
- (void)action_4 {}

//: self.jeopardyThriveButton 的点击事件
- (void)action_5 {}

- (void)embarkVividXenialLayout {
	//: 描述_0
	[self.contentView addSubview:self.balanceTextField];

	//: 描述_1
	[self.contentView addSubview:self.nirvanaAnticipateImageView];
	[self.nirvanaAnticipateImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(59);
		make.height.mas_equalTo(62);
	}];


    //: 描述_2
    UITextView *sereneQuaint = [[UITextView alloc] init];
    self.brillianceBalanceQuicksilverTextView = sereneQuaint;
    [self.contentView addSubview:sereneQuaint];
	[self.brillianceBalanceQuicksilverTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(190);
		make.height.mas_equalTo(159);
		make.top.equalTo(@(23));
		make.bottom.equalTo(@(14));
	}];


    //: 描述_3
    self.prismBtn = [[UIButton alloc] init];
    self.prismBtn.frame = CGRectMake(2, 5, 128, 191);
    UIImage *flourishZenith = [UIImage imageNamed:@"images/icon_3.png"];
    if (flourishZenith) {
	    [self.prismBtn setImage:flourishZenith forState:UIControlStateNormal];
    }
    [self.prismBtn setTitle:@"button_3" forState:UIControlStateNormal];
    [self.prismBtn setTitle:@"button_selected_3" forState:UIControlStateSelected];
    [self.prismBtn setTitleColor:[UIColor colorWithRed:139/255.0 green:195/255.0 blue:82/255.0 alpha:0.6] forState:UIControlStateNormal];
    [self.prismBtn setTitleColor:[UIColor colorWithRed:205/255.0 green:108/255.0 blue:60/255.0 alpha:0.8] forState:UIControlStateSelected];
    [self.prismBtn addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.prismBtn];


    //: 描述_4
    self.jellyUnfoldIntrepidBtn = [UIButton new];
    UIImage *xenon = [UIImage imageNamed:@"images/icon_4.png"];
    if (xenon) {
	    [self.jellyUnfoldIntrepidBtn setImage:xenon forState:UIControlStateNormal];
    }
    [self.jellyUnfoldIntrepidBtn setTitle:@"button_4" forState:UIControlStateNormal];
    [self.jellyUnfoldIntrepidBtn setTitle:@"button_selected_4" forState:UIControlStateSelected];
    [self.jellyUnfoldIntrepidBtn setTitleColor:[UIColor colorWithRed:220/255.0 green:244/255.0 blue:26/255.0 alpha:0.6] forState:UIControlStateNormal];
    [self.jellyUnfoldIntrepidBtn setTitleColor:[UIColor colorWithRed:45/255.0 green:19/255.0 blue:250/255.0 alpha:0.9] forState:UIControlStateSelected];
    [self.jellyUnfoldIntrepidBtn addTarget:self action:@selector(action_4) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.jellyUnfoldIntrepidBtn];
	[self.jellyUnfoldIntrepidBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(166);
		make.height.mas_equalTo(85);
	}];


    //: 描述_5
    self.jeopardyThriveButton = [UIButton new];
    UIImage *zealCrispUnwind = [UIImage imageNamed:@"images/icon_5.png"];
    if (zealCrispUnwind) {
	    [self.jeopardyThriveButton setImage:zealCrispUnwind forState:UIControlStateNormal];
    }
    [self.jeopardyThriveButton setTitle:@"button_5" forState:UIControlStateNormal];
    [self.jeopardyThriveButton setTitle:@"button_selected_5" forState:UIControlStateSelected];
    [self.jeopardyThriveButton setTitleColor:[UIColor colorWithRed:91/255.0 green:171/255.0 blue:13/255.0 alpha:0.8] forState:UIControlStateNormal];
    [self.jeopardyThriveButton setTitleColor:[UIColor colorWithRed:88/255.0 green:218/255.0 blue:203/255.0 alpha:0.7] forState:UIControlStateSelected];
    [self.jeopardyThriveButton addTarget:self action:@selector(action_5) forControlEvents:UIControlEventTouchUpInside];
    [self.contentView addSubview:self.jeopardyThriveButton];
	[self.jeopardyThriveButton mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(164);
		make.height.mas_equalTo(164);
		make.bottom.equalTo(@(27));
	}];


    //: 描述_6
    UIView *archiveSerene = [UIView new];
    self.yarnView = archiveSerene;
    [self.contentView addSubview:archiveSerene];
	[self.yarnView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(111);
		make.height.mas_equalTo(126);
		make.top.equalTo(@(16));
		make.bottom.equalTo(@(11));
	}];
}


@end